package pt.iscte.pcd.containersizeproblem;
import java.awt.Graphics;

import javax.swing.JComponent;


public class MyPane extends JComponent {
	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		int dx = 50;
		int dy = 50;

		for (int i = 0; i != 8 + 1; i++) {
			g.drawLine(0, i * dy, getWidth(), i * dy);
			System.out.println("Drawing (" + 0 + "," + (i * dy) + "), (" + getWidth() + ", " + (i * dy) + ")");
		}
		for (int i = 0; i != 12 + 1; i++) {
			g.drawLine(i * dx, 0, i * dx, getHeight());
			System.out.println("Drawing (" + (i*dx) + "," + 0 + "), (" + i * dx + ", " + getHeight() + ")");
		}

	}

}
